t
Menu Editor*132*

The Menu editor is a Specification editor. It can be invoked by:

o
selecting Enter Editor from the Apple menu when the attributes window of a «Menu» is frontmost, or when a Value window displaying a «Menu» is frontmost.

o
clicking the Graphic check box in a Value window displaying a «Menu»;

o
clicking the Edit button in the Application editor after selecting a «Menu» element from the List of Instances ;

o
double-clicking a «Menu» element in List of Instances in the Application editor;*132*

As the developer edits a «Menu», a pictorial representation of it (referred to subsequently as the “menu image”) as it will appear in the menu bar is displayed in the top right-hand part of the editor window. Each item in the menu image corresponds to a «Menu Item» in the attribute item list of «Menu» and displays the values of the attributes check, name, and key of the «Menu Item». At most one item in the menu image is selected. Clicking on an unselected item in the menu image selects it.*132*

Menu*133*

An editable-text field that displays the value of the attribute name of «Menu». 

Disable Menu*133*

Check box for disabling the «Menu» (equivalent to setting attribute enabled? of «Menu» to FALSE).

Item*133*

An editable-text field displaying the value of the attribute name of the «Menu Item» corresponding to the selected item in the menu image. If the «Menu Item» has no name, the corresponding item in the menu image is a dotted line. Editing causes the menu image to be updated. 

Method*133*

An editable-text field that displays the value of attribute method of «Menu Item» (that is, the name of the method executed when the menu item is selected).

Key*134*

An editable-text field for the menu item’s command-key equivalent (the value of attribute key of «Menu Item»). The string can have only one character. Editing updates the menu image, provided the «Menu Item» has a name (its name attribute value is not the empty string).

Balloon…*134*

Opens a dialog for adding Balloon Help for the menu (if its name is selected) or for the selected menu item.

Insert Before*134*

Inserts a new «Menu Item» in the list in the attribute item list of «Menu» before the one that corresponds to the selected item in the menu image. Updates the menu image. 

Insert After*134*

Inserts a new «Menu Item» in the list in the attribute item list of «Menu» after the one that corresponds to the selected item in the menu image. Updates the menu image.

Delete*134*

Deletes the «Menu Item» corresponding to the selected item in the menu image from the list in the attribute item list of the «Menu». Updates the menu image.

Instance*134*

Dismisses the Menu Editor as if the OK button had been pressed and opens a Value window showing the menu’s instance.

Disable Item*134*

Check box for disabling the menu item (equivalent to setting attribute active? of «Menu Item» to FALSE). Changing updates the menu image. 

Check*135*

Check box for putting a check mark (√) next to a menu item (equivalent to setting attribute check? of «Menu Item» to TRUE). Changing updates the menu image. 

Styles*135*

If this radio button is set, check boxes specifying text styles are displayed.

Keys*135*

If this radio button is set, check boxes specifying modifier keys are displayed.

NOTE:  For each menu, you can specify either text styles or modifier keys, but not both.

Bold, Italic, Underline, Outline, Shadow*135*

These boxes are visible only when the Styles radio button is set. If any of these boxes are checked, the value of the attribute style of «Menu Item» indicates the corresponding style. Changing updates the menu image.

Shift, Option, Control*135*

These boxes are visible only when the Keys radio button is set. If any of these boxes is checked, the value of the attribute style of «Menu Item» indicates the corresponding modifier keys. Changing updates the menu image.